﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Xml;
using System.Data;

namespace Web.Viem
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.AddHeader("Content-Type", "application/json");
            string ss = "[{\"key\":\"新生儿礼盒\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"套装件数\",\"valuevalue\":[\"1件\",\"2件\",\"3件\",\"4件\",\"5件\",\"6件以上\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"礼盒内容\",\"valuevalue\":[\"服装+配件/用品\",\"服装\",\"服装+鞋+配件/用品\",\"配件/用品套装\",\"服装+鞋\",\"其它\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"牛仔\",\"绒布\",\"丝绸\",\"化纤\",\"混纺\"]}]},{\"key\":\"连身衣/爬服/哈衣\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"爬服款式\",\"valuevalue\":[\"长爬\",\"短爬\",\"三角爬\",\"蝴蝶衣\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"绒布\",\"灯芯绒\",\"天鹅绒\",\"羊绒\",\"羽绒\",\"摇粒绒\",\"珊瑚绒\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"套头衫\",\"对襟系带\",\"斜襟系带\",\"斜襟单排扣\"]},{\"valuekey\":\"童装袖长\",\"valuevalue\":[\"无袖\",\"短袖\",\"长袖\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]}]},{\"key\":\"衬衫/T恤\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"款式\",\"valuevalue\":[\"长袖\",\"短袖\"]},{\"valuekey\":\"其他\",\"valuevalue\":[\"男女款\",\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"牛仔\",\"绒布\",\"丝绸\",\"雪纺\",\"灯芯绒\",\"天鹅绒\"]},{\"valuekey\":\"童装衣领款式\",\"valuevalue\":[\"立领\",\"V字领\",\"鸡心领\",\"一字领\",\"圆领\",\"方领\",\"翻领圆领\",\"翻领尖领\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"其他\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]}]},{\"key\":\"背心/吊带衫\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"背心/吊带款式\",\"valuevalue\":[\"无袖\",\"裹胸\",\"工字\",\"吊带\",\"针织背心\",\"其它\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"牛仔\",\"绒布\",\"丝绸\",\"雪纺\",\"灯芯绒\",\"天鹅绒\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"其他\"]},{\"valuekey\":\"衣领款式\",\"valuevalue\":[\"立领\",\"翻领圆领\",\"翻领尖领\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]}]},{\"key\":\"内衣裤/睡衣\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"童装内衣类型\",\"valuevalue\":[\"内衣\",\"内裤\",\"睡衣\",\"睡裤\",\"睡袍\",\"睡裙\",\"睡衣套装\",\"棉毛衫/秋衣\",\"棉毛裤/秋裤\",\"棉毛衫/秋衣裤套装\",\"内衣裤套装\",\"婴儿内衣套装\",\"护肚裤\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"内衣功能\",\"valuevalue\":[\"保暖\",\"排湿\",\"吸汗\",\"抗静电\",\"抗菌\",\"防辐射\",\"防紫外线\",\"防红外线\",\"防臭\",\"吸湿\",\"排汗\",\"燃脂\",\"居家\"]},{\"valuekey\":\"内衣质地\",\"valuevalue\":[\"莫代尔\",\"羊绒\",\"纯棉\",\"天然彩棉\",\"人工彩棉\",\"Laica/莱卡\",\"其他材质\"]}]},{\"key\":\"反穿衣/罩衣\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否防水\",\"valuevalue\":[\"是\",\"否\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"棉类混纺\",\"全棉\",\"灯芯绒\",\"涤棉\",\"其他\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]}]},{\"key\":\"肚围/护脐带/肚兜\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"质地\",\"valuevalue\":[\"莫代尔\",\"纯棉\",\"羊绒\",\"天然彩棉\",\"人工彩棉\",\"Laica/莱卡\",\"其他材质\"]}]},{\"key\":\"马甲\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"厚薄\",\"valuevalue\":[\"棉内胆\",\"薄款\",\"加厚\",\"毛内胆\",\"抓绒\",\"普通\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"毛料\",\"牛仔\",\"绒布\",\"丝绸\",\"雪纺\",\"灯芯绒\",\"天鹅绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\",\"羊毛\",\"羊绒\",\"羽绒\",\"珊瑚绒\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\",\"羊角扣\",\"一粒扣\",\"暗扣\",\"斜襟系带\",\"斜襟单排扣\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"淑女\",\"其他\"]},{\"valuekey\":\"填充料\",\"valuevalue\":[\"90%灰鸭绒\",\"80%灰鸭绒\",\"70%灰鸭绒\",\"60%灰鸭绒\",\"50%灰鸭绒\",\"90%白鸭绒\",\"80%白鸭绒\",\"70%白鸭绒\",\"60%白鸭绒\",\"50%白鸭绒\",\"丝绵\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]}]},{\"key\":\"棉袄/棉服\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"厚薄\",\"valuevalue\":[\"棉内胆\",\"薄款\",\"加厚\",\"毛内胆\",\"抓绒\",\"普通\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\",\"羊角扣\",\"一粒扣\",\"暗扣\",\"斜襟系带\",\"斜襟单排扣\"]},{\"valuekey\":\"童装衣领款式\",\"valuevalue\":[\"圆领\",\"高领\",\"立领\",\"翻领\",\"其他\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"其他\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"毛料\",\"牛仔\",\"绒布\",\"丝绸\",\"灯芯绒\",\"天鹅绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\",\"珊瑚绒\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"里料材质\",\"valuevalue\":[\"棉布\",\"绒布\",\"仿毛布\",\"夹棉\"]},{\"valuekey\":\"填充物\",\"valuevalue\":[\"棉96%及以上\",\"棉91%-95%\",\"棉81%-90%\",\"棉71%-80%\",\"棉61%-70%\",\"棉51%-60%\",\"棉50%及以下\",\"其他填充物\"]}]},{\"key\":\"羽绒服/羽绒内胆\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"衣长\",\"valuevalue\":[\"短款\",\"中长款\",\"长款\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"羽绒服类型\",\"valuevalue\":[\"羽绒内胆\",\"羽绒服\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"拉链\",\"一粒扣\",\"暗扣\",\"斜襟单排扣\"]},{\"valuekey\":\"童装衣领款式\",\"valuevalue\":[\"圆领\",\"高领\",\"翻领\",\"毛领可脱卸\",\"毛领不可脱卸\",\"其他\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"淑女\",\"其他\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"丝绸\",\"羽绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"填充料\",\"valuevalue\":[\"90%灰鸭绒\",\"80%灰鸭绒\",\"70%灰鸭绒\",\"60%灰鸭绒\",\"50%灰鸭绒\",\"90%白鸭绒\",\"80%白鸭绒\",\"70%白鸭绒\",\"60%白鸭绒\",\"50%白鸭绒\",\"丝绵\"]}]},{\"key\":\"卫衣/绒衫\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"厚薄\",\"valuevalue\":[\"棉内胆\",\"薄款\",\"加厚\",\"毛内胆\",\"抓绒\",\"普通\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\"]}]},{\"key\":\"毛衣/针织衫\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"厚薄\",\"valuevalue\":[\"薄款\",\"加厚\",\"抓绒\",\"普通\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"毛线粗细\",\"valuevalue\":[\"加粗毛线\",\"粗毛线\",\"普通毛线\",\"细毛线\",\"花色毛线\"]},{\"valuekey\":\"针织面料\",\"valuevalue\":[\"纯羊绒\",\"纯羊毛\",\"丝光羊毛\",\"兔毛混纺\",\"羊绒混纺\",\"羊毛混纺\",\"大豆纤维混纺\",\"腈纶混纺\",\"全棉\",\"丝质\",\"棉涤\",\"全麻\",\"棉麻\",\"涤纶\",\"蚕丝\",\"其它针织面料\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"其他\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\",\"羊角扣\",\"一粒扣\",\"暗扣\",\"斜襟系带\",\"斜襟单排扣\"]},{\"valuekey\":\"童装衣领款式\",\"valuevalue\":[\"圆领\",\"高领\",\"立领\",\"翻领\",\"一字领\",\"V领\",\"其他\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]}]},{\"key\":\"外套/夹克/大衣\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"长度\",\"valuevalue\":[\"短款\",\"中长款\",\"长款\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"里料材质\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"毛料\",\"牛仔\",\"绒布\",\"丝绸\",\"雪纺\",\"灯芯绒\",\"天鹅绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\",\"羊毛\",\"羊绒\",\"羽绒\",\"珊瑚绒\",\"全棉\",\"真丝\",\"绒布\",\"棉麻\",\"夹棉\",\"仿毛布\",\"棉布\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"百搭\",\"原创\",\"其他\"]},{\"valuekey\":\"童装衣领款式\",\"valuevalue\":[\"立领\",\"翻领圆领\",\"翻领尖领\",\"西装领\",\"高领\",\"其他\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"皮革\",\"牛仔\",\"尼龙\",\"涤纶\"]},{\"valuekey\":\"是否有腰带\",\"valuevalue\":[\"是\",\"否\"]}]},{\"key\":\"裤子\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"裤子类型\",\"valuevalue\":[\"运动裤\",\"哈伦裤/灯笼裤\",\"牛仔裤\",\"打底裤/靴裤/小脚裤\",\"大PP裤\",\"毛线裤\",\"西  裤\",\"普通休闲裤\",\"背带裤\",\"连身裤/连体裤\",\"灯心绒裤\",\"羽绒裤\",\"冬棉裤\",\"沙滩裤\"]},{\"valuekey\":\"童装裤长\",\"valuevalue\":[\"长裤\",\"短裤\",\"5分裤\",\"7分裤\",\"9分裤\"]},{\"valuekey\":\"是否开裆\",\"valuevalue\":[\"开裆\",\"不开裆\",\"可开裆\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"裤腰\",\"valuevalue\":[\"高腰\",\"中腰\",\"低腰\",\"双裤腰\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"毛料\",\"牛仔\",\"绒布\",\"丝绸\",\"灯芯绒\",\"天鹅绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\",\"珊瑚绒\"]},{\"valuekey\":\"童装裤子闭合方式\",\"valuevalue\":[\"皮筋腰带\",\"钮扣+拉链\",\"钮扣\",\"系绳腰带\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"淑女\",\"其他\"]}]},{\"key\":\"裙子\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"裙子款式\",\"valuevalue\":[\"半身裙\",\"吊带裙/背心裙\",\"短袖连衣裙\",\"长袖连衣裙\",\"超短裙\",\"背带裙\",\"衬裙\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"裙子裙摆\",\"valuevalue\":[\"蛋糕裙\",\"百褶裙\",\"西装裙\",\"荷叶边\",\"拼接款\",\"A字裙\",\"背带裙\",\"牛仔裙\",\"不规则\",\"其它裙摆\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"纯棉\",\"亚麻\",\"毛料\",\"牛仔\",\"绒布\",\"丝绸\",\"灯芯绒\",\"天鹅绒\",\"化纤\",\"混纺\",\"尼龙\",\"涤纶\",\"珊瑚绒\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"淑女\",\"其他\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]}]},{\"key\":\"套装/旗袍\",\"value\":[{\"valuekey\":\"适合季节\",\"valuevalue\":[\"夏季\",\"冬季\",\"春秋季\",\"不限\"]},{\"valuekey\":\"适用年龄\",\"valuevalue\":[\"0-6月龄\",\"6-12月龄\",\"1-3岁\",\"3-7岁\",\"7岁以上\"]},{\"valuekey\":\"厚薄\",\"valuevalue\":[\"薄款\",\"加厚\",\"抓绒\",\"普通\"]},{\"valuekey\":\"男女款\",\"valuevalue\":[\"男款\",\"女款\",\"中性\"]},{\"valuekey\":\"是否带帽子\",\"valuevalue\":[\"有帽不可拆\",\"有帽可拆\",\"无帽\"]},{\"valuekey\":\"套装类型\",\"valuevalue\":[\"无袖+裤子\",\"无袖+裙子\",\"短袖+裤子\",\"短袖+裙子\",\"长袖+裤子\",\"长袖+裙子\",\"礼盒装\",\"其它\"]},{\"valuekey\":\"面料/质地\",\"valuevalue\":[\"绢纺\",\"电力纺\",\"锦缎\",\"丝绸\",\"杭罗\"]},{\"valuekey\":\"童装风格\",\"valuevalue\":[\"运动\",\"休闲\",\"学院\",\"百搭\",\"原创\",\"民族\",\"淑女\",\"其他\"]},{\"valuekey\":\"童装闭合款式\",\"valuevalue\":[\"单排扣\",\"双排扣\",\"套头衫\",\"拉链\"]},{\"valuekey\":\"童装图案\",\"valuevalue\":[\"条纹\",\"格子\",\"圆点\",\"卡通\",\"碎花\",\"纯色\",\"豹纹\",\"其他\"]},{\"valuekey\":\"童装套装件数\",\"valuevalue\":[\"2件套\",\"3件套\",\"多件套\"]}]}]";
            Response.Write(ss);
        }

        //声明客户端调用
        protected void Button1_Click(object sender, EventArgs e)
        {
            //int i = TClient.BuyTickets(1); //调用WCF中的方法
            //if (i == 1)
            //{
            //    this.Label1.Text = "购买成功";
            //}
            //this.Label1.Text += "剩余车票还有" + TClient.GetRemainingNum().ToString();
        }
        protected void Button2_Click(object sender, EventArgs e)
        {
            //this.Label1.Text = "";
            //this.Label1.Text = TClient.GetRemainingNum().ToString();//调用WCF中的方法
        }
    }

    #region
    /// <summary>
    /// 论坛登陆同步
    /// </summary>
    public class bbs_Utils
    {
        /// <summary>
        /// 王强2011-08-04 
        /// </summary>
        private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
        /// <summary>
        /// DES加密字符串 王强2011-08-04 
        /// </summary>
        /// <param name="encryptString">待加密的字符串</param>
        /// <param name="encryptKey">加密密钥,要求为8位</param>
        /// <returns>加密成功返回加密后的字符串,失败返回源串</returns>
        public static string Encode(string encryptString, string encryptKey)
        {
            encryptKey = Bbs_GetSubString(encryptKey, 8, "");
            encryptKey = encryptKey.PadRight(8, ' ');
            byte[] rgbKey = Encoding.UTF8.GetBytes(encryptKey.Substring(0, 8));
            byte[] rgbIV = Keys;
            byte[] inputByteArray = Encoding.UTF8.GetBytes(encryptString);
            DESCryptoServiceProvider dCSP = new DESCryptoServiceProvider();
            MemoryStream mStream = new MemoryStream();
            CryptoStream cStream = new CryptoStream(mStream, dCSP.CreateEncryptor(rgbKey, rgbIV), CryptoStreamMode.Write);
            cStream.Write(inputByteArray, 0, inputByteArray.Length);
            cStream.FlushFinalBlock();
            return Convert.ToBase64String(mStream.ToArray());

        }

        /// <summary>
        /// 字符串如果操过指定长度则将超出的部分用指定字符串代替  王强2011-08-04 
        /// </summary>
        /// <param name="p_SrcString">要检查的字符串</param>
        /// <param name="p_Length">指定长度</param>
        /// <param name="p_TailString">用于替换的字符串</param>
        /// <returns>截取后的字符串</returns>
        public static string Bbs_GetSubString(string p_SrcString, int p_Length, string p_TailString)
        {
            return Bbs_GetSubString(p_SrcString, 0, p_Length, p_TailString);
        }
        /// <summary>
        /// 取指定长度的字符串  王强2011-08-04 
        /// </summary>
        /// <param name="p_SrcString">要检查的字符串</param>
        /// <param name="p_StartIndex">起始位置</param>
        /// <param name="p_Length">指定长度</param>
        /// <param name="p_TailString">用于替换的字符串</param>
        /// <returns>截取后的字符串</returns>
        public static string Bbs_GetSubString(string p_SrcString, int p_StartIndex, int p_Length, string p_TailString)
        {
            string myResult = p_SrcString;

            Byte[] bComments = Encoding.UTF8.GetBytes(p_SrcString);
            //foreach (char c in Encoding.UTF8.GetChars(bComments))
            //{    //当是日文或韩文时(注:中文的范围:\u4e00 - \u9fa5, 日文在\u0800 - \u4e00, 韩文为\xAC00-\xD7A3)
            //    if ((c > '\u0800' && c < '\u4e00') || (c > '\xAC00' && c < '\xD7A3'))
            //    {
            //        //if (System.Text.RegularExpressions.Regex.IsMatch(p_SrcString, "[\u0800-\u4e00]+") || System.Text.RegularExpressions.Regex.IsMatch(p_SrcString, "[\xAC00-\xD7A3]+"))
            //        //当截取的起始位置超出字段串长度时
            //        if (p_StartIndex >= p_SrcString.Length)
            //            return "";
            //        else
            //            return p_SrcString.Substring(p_StartIndex,
            //                                           ((p_Length + p_StartIndex) > p_SrcString.Length) ? (p_SrcString.Length - p_StartIndex) : p_Length);
            //    }
            //}

            if (p_Length >= 0)
            {
                byte[] bsSrcString = Encoding.Default.GetBytes(p_SrcString);

                //当字符串长度大于起始位置
                if (bsSrcString.Length > p_StartIndex)
                {
                    int p_EndIndex = bsSrcString.Length;

                    //当要截取的长度在字符串的有效长度范围内
                    if (bsSrcString.Length > (p_StartIndex + p_Length))
                    {
                        p_EndIndex = p_Length + p_StartIndex;
                    }
                    else
                    {   //当不在有效范围内时,只取到字符串的结尾

                        p_Length = bsSrcString.Length - p_StartIndex;
                        p_TailString = "";
                    }

                    int nRealLength = p_Length;
                    int[] anResultFlag = new int[p_Length];
                    byte[] bsResult = null;

                    int nFlag = 0;
                    for (int i = p_StartIndex; i < p_EndIndex; i++)
                    {
                        if (bsSrcString[i] > 127)
                        {
                            nFlag++;
                            if (nFlag == 3)
                                nFlag = 1;
                        }
                        else
                            nFlag = 0;

                        anResultFlag[i] = nFlag;
                    }

                    if ((bsSrcString[p_EndIndex - 1] > 127) && (anResultFlag[p_Length - 1] == 1))
                        nRealLength = p_Length + 1;

                    bsResult = new byte[nRealLength];

                    Array.Copy(bsSrcString, p_StartIndex, bsResult, 0, nRealLength);

                    myResult = Encoding.Default.GetString(bsResult);
                    myResult = myResult + p_TailString;
                }
            }

            return myResult;
        }
        /// <summary>
        /// DES解密字符串
        /// </summary>
        /// <param name="decryptString">待解密的字符串</param>
        /// <param name="decryptKey">解密密钥,要求为8位,和加密密钥相同</param>
        /// <returns>解密成功返回解密后的字符串,失败返源串</returns>
        public static string Decode(string decryptString, string decryptKey)
        {
            try
            {
                decryptKey = Bbs_GetSubString(decryptKey, 8, "");
                decryptKey = decryptKey.PadRight(8, ' ');
                byte[] rgbKey = Encoding.UTF8.GetBytes(decryptKey);
                byte[] rgbIV = Keys;
                byte[] inputByteArray = Convert.FromBase64String(decryptString);
                DESCryptoServiceProvider DCSP = new DESCryptoServiceProvider();

                MemoryStream mStream = new MemoryStream();
                CryptoStream cStream = new CryptoStream(mStream, DCSP.CreateDecryptor(rgbKey, rgbIV), CryptoStreamMode.Write);
                cStream.Write(inputByteArray, 0, inputByteArray.Length);
                cStream.FlushFinalBlock();
                return Encoding.UTF8.GetString(mStream.ToArray());
            }
            catch
            {
                return "";
            }
        }
    }

#endregion

}